package com.gs.cd.service.role.service;

import com.gs.cd.service.role.model.AuthRoleResourceGroup;
import com.baomidou.mybatisplus.extension.service.IService;
import lombok.NonNull;

import java.util.Collection;
import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author seven
 * @since 2020-12-22
 */
public interface AuthRoleResourceGroupService extends IService<AuthRoleResourceGroup> {

    /**
     * 通过roleCode获取
     * @param roleCode
     * @param tenantCode
     * @return
     */
    List<AuthRoleResourceGroup> listByRoleCode(String roleCode, String tenantCode);

    /**
     * 通过roleCodes获取
     * @param roleCodes
     * @param tenantCode
     * @return
     */
    List<AuthRoleResourceGroup> listByRoleCodes(@NonNull Collection<String> roleCodes, String tenantCode);
}
